package com.example.rbacmanage.controller.app;

import com.example.rbacmanage.common.Result;
import com.example.rbacmanage.entity.app.Classic;
import com.example.rbacmanage.service.app.ClassicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.Date;


@RestController
@RequestMapping("/app/classic")
public class AppClassicController {
    @Autowired
    private ClassicService classicService;


    @GetMapping("/alllist")
    public Result list(Classic classic){
        return Result.success(classicService.getAll(classic));
    }

}
